<include file="Base/header" />
<div class="page-container">
	<include file="Base/menu" />
	<div class="page-content">
		<div class="container-fluid">
			<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<h3 class="page-title">
						</h3>
						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="/index.php/Admin/">首页</a>
								<i class="icon-angle-right"></i>
							</li>
							<li><a href="/index.php/Admin/Other">其他管理</a></li>
						</ul>
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
			</div>
			<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption"><i class="icon-globe"></i>幻灯片管理</div>
								<div class="tools">
									<a href="javascript:;" class="collapse"></a>
									<a href="javascript:;" class="reload"></a>
									<a href="javascript:;" class="remove"></a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="clearfix">
									<div class="btn-group">
										<a href="__CONTROLLER__/Add"><button id="sample_editable_1_new" class="btn green">
										新加&nbsp;&nbsp;<i class="icon-plus"></i>
										</button></a>
									</div>
								</div>
								<div id="sample_1_wrapper" class="dataTables_wrapper form-inline" role="grid">
									
<table class="table table-striped table-bordered table-hover dataTable"
id="sample_1" aria-describedby="sample_1_info">
    <thead>
        <tr role="row">
            <!-- <th style="width: 24px;" class="sorting_disabled" role="columnheader"
            rowspan="1" colspan="1" aria-label="">
                <div class="checker">
                    <span>
                        <input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes">
                    </span>
                </div>
            </th> -->
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample_1"
            rowspan="1" colspan="1" aria-label="" style="width: 50px;">
                ID
            </th>
            <th class="hidden-480 sorting_disabled" role="columnheader" rowspan="1"
            colspan="1" aria-label="Email" style="width: 150px;">
                类型
            </th>
            <th class="hidden-480 sorting_disabled" role="columnheader" rowspan="1"
            colspan="1" aria-label="Email" style="width: 150px;">
                图片
            </th>
            <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_1"
            rowspan="1" colspan="1" aria-label="" style="width: 40px;">
                添加时间
            </th>
            <th class="hidden-480 sorting_disabled" role="columnheader" rowspan="1"
            colspan="1" aria-label="Joined" style="width: 20px;">
                管理
             </th>

        </tr>
    </thead>

    <foreach name="data" item="vo"> 

    <tbody role="alert" aria-live="polite" aria-relevant="all">
     <tr class="gradeX odd">
            <!-- <td class=" sorting_1">
                <div class="checker">
                    <span>
                        <input type="checkbox" class="checkboxes" value="1">
                    </span>
                </div>
            </td> -->
            <td class="">
                {$vo.id}
            </td>
            <td class="">
                {$vo.type|get_Type}
            </td>
            <td class="hidden-480 ">
                <div name="layer-photos-demo" class="layer-photos-demo" style="height: 20px;width:40px">
                    <img layer-pid="{$vo.id}" layer-src="{$vo.image}" src="{$vo.image}">
                </div>
                <!-- <a id="kan" onclick="kan()" style="cursor: pointer;">查看</a> --> 
            </td>
            <td class="hidden-480 ">
                {$vo.add_time|date="Y-m-d",###}
            </td>

            <td class="center hidden-480 ">
                <a href="__CONTROLLER__/update?id={$vo.id}">
                   编辑
                </a>
                <a id="del" onclick="del({$vo.id})" style="cursor: pointer;">
                   删除
                </a>
            </td>
        </tr>
    </tbody>


    </foreach>
</table>
<!-- 分页 -->
<div class="row-fluid">

    <div class="span6">
        <div class="dataTables_info" id="sample_1_info">
          共{$count}条数据记录。
        </div>
    </div>
    <div class="span6">
        <div class="dataTables_paginate paging_bootstrap pagination">
            {$page}
        </div>
    </div>
</div>
								</div>
							</div>
						</div>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>
		</div>
	</div>
</div>
<include file="Base/footer" />
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript">

    layer.photos({
        photos: '.layer-photos-demo'
        ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
    });
    
function del(id){
    layer.alert('确定删除？',function(close){
        pullRequest(id);
        layer.close(close);
    })
    function pullRequest(id){
        self.location="__MODULE__/Slide/delete?id="+id;
    }
}
</script>
